<form class="liste" name="<?php echo escapeString($name) ?>" method="<?php echo $method ?>" action="<?php echo $action ?>">
    <?php foreach($fields AS $field): ?>
    <label <?php if ($field->isError()): ?>class="error"<?php endif; ?> for="<?php echo escapeString($name) ?>_<?php echo $field->getName() ?>">
            <?php echo $field->getLabel() ?>
            <?php if ( $field->isError() ): ?>
                  <span class="helper"><?php echo $field->getError() ?></span><?php
            else: ?>
                <span class="helper"><?php echo $field->getHelper() ?></span>
            <?php endif; ?> :
    </label>
    <?php $field->display() ?>
    <?php endforeach; ?>
    <input type="submit" class="submit" name="submit_<?php echo escapeString($name) ?>" value="<?php echo $submitText ?>" />
</form>